home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / SNIP9_91.ARJ / UNIX2DOS.C < prev    next >
C/C++ Source or Header  |  1991-09-12  |  257b  |  16 lines

  1. /*
  2. **  UNIX2DOS.C - Convert Unix-style pathnames to DOS-style
  3. */
  4.  
  5. #include <stddef.h>
  6. #include <string.h>
  7.  
  8. char *unix2dos(char *path)
  9. {
  10.       char *p;
  11.  
  12.       while (NULL != (p = strchr(path, '/')))
  13.             *p = '\\';
  14.       return path;
  15. }
  16.